<template>
  <div>
    <svg-icon icon-class="fullscreen" style="color: white" @click="toggleScreen" />
  </div>
</template>

<script>
import screenfull from 'screenfull'
export default {
  methods: {
    toggleScreen() {
      // console.log(1)
      // console.log(screenfull)
      if (screenfull.enabled) {
        screenfull.toggle()
      } else {
        this.$message.warning('不支持全屏')
      }
    }
  }
}
</script>

<style>

</style>
